//
//  GRMyPaidOrderViewCell.m
//  YC_GRice
//
//  Created by Feng Liu on 2018/8/30.
//  Copyright © 2018年 YeCai. All rights reserved.
//

#import "GRMyPaidOrderViewCell.h"

@implementation GRMyPaidOrderViewCell

- (void)awakeFromNib {
    [super awakeFromNib];
    // Initialization code
}

-(void)setBillModel:(GRMyBillModel *)billModel {
    _shopName.text = billModel.nikeName;
    _orderDescription.text = [NSString stringWithFormat:@"消费￥%.2f 龟米优惠￥%.2f 实付￥%.2f",billModel.totalMoney, billModel.costPoint, billModel.payMoney];
    _payState.text  = [billModel.state isEqualToString:@"complete"] ? @"支付成功" : @"待支付";
    _orderTime.text = billModel.paidAtStr;
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}

@end
